<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../vue_lib/vue.js"></script>
    <title>Title</title>
</head>
<body>
<div id="app">
    {{ message }}
</div>
<script>
    var vm = new Vue({
        el:"#app",
        data:{
            message:'hi vue!'
        },
        beforeCreate:function () {
            console.log('创建之前')

        },
        created:function () {
           console.log('创建后')
        },
        beforeMount:function () {
           console.log('挂载之前')
        },
        mounted:function () {
           console.log('挂载之后')
        },
        beforeUpdate:function () {
           console.log('数据更新之前')
        },
        updated:function () {
           console.log('数据更新之后')
        }
    });
    setTimeout(function () {
       vm.message = 'vue change'
    },3000)
</script>
</body>
</html>